-- GENERATED SPELL FOR [Obsidian Destroyer] --


function spell0_15338(pUnit, Event) --@Purge,Self--
pUnit:FullCastSpellOnTarget(25756,pUnit)
pUnit:RegisterEvent('Sorts_15338', 2315, 1)
end

function Sorts_15338(pUnit, Event)
local choix_sorts_15338 = math.random(0, 0)
if choix_sorts_15338 == 0 then
pUnit:RegisterEvent('spell0_15338', 1, 1)
end
end

function mob15338_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15338', math.random(1500, 3000), 1)
end

function mob15338_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15338_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15338_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15338, 1, 'mob15338_Action')
RegisterUnitEvent(15338, 2, 'mob15338_Leave')
RegisterUnitEvent(15338, 3, 'mob15338_Kill')
RegisterUnitEvent(15338, 4, 'mob15338_Die')
